package com.cy.kind;

public class dog {



        public   String name;
        public  int  age;
        public  String  color;

        public  void sound (){
            System.out.println("发出声音");
        }


        public static void main(String[] args) {
            dog dog  = new dog();
            dog.name = "猫";
            dog.age = 12;
            dog.color = "白";
            System.out.println(dog.name);
            System.out.println(dog.age);
            System.out.println(dog.color);
            dog .sound();
            System.out.println("发出声音");


        }
    }



